cmake_minimum_required(VERSION 3.10)

if( DEFINED ENV{DM2016_DEV} )
	MESSAGE(STATUS "DM2016_DEV=$ENV{DM2016_DEV}")
else()
	MESSAGE(FATAL_ERROR "请设置环境变量DM2016_DEV")
endif()

include( $ENV{DM2016_DEV}/dm.cmake )

project(dm_tools)

add_subdirectory(dmtest)
add_subdirectory(num2hex)
add_subdirectory(logshow)
add_subdirectory(msgshow)
add_subdirectory(telegram)
add_subdirectory(scadashow)
add_subdirectory(rtdata)
add_subdirectory(eventmonitor)
add_subdirectory(measuremonitor)
add_subdirectory(cumulantmonitor)
add_subdirectory(dmsync)

if( NOT WIN32)
	add_subdirectory(can_tool)
endif()

add_subdirectory(slaver104)
add_subdirectory(master104)

add_subdirectory(hisdata)
add_subdirectory(histool)

add_subdirectory(dmd)
add_subdirectory(systool)

add_subdirectory(optool)

add_subdirectory(modbusmap)
add_subdirectory(dmmodbus)
add_subdirectory(sessiontool)